package com.wpl.bean;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class User implements Serializable {
    @ApiModelProperty(value = "用户编号")
    private Integer id;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐")
    private String salt;

    @ApiModelProperty(value = "小组编号")
    private Integer groupid;

    @ApiModelProperty(value = "小组名称")
    private String groupname;

    @ApiModelProperty(value = "角色id")
    private Integer userroleid;

    @ApiModelProperty(value = "角色菜单id")
    private String rolemenuid;

    @ApiModelProperty(value = "(0:在线、1：不在线")
    private Integer online;

    @ApiModelProperty(value = "(0:暂停服务、1：正在服务）")
    private Integer serving;

    private static final long serialVersionUID = 1L;

    public User() {
    }

    public User(Integer online) {
        this.online = online;
    }

    public User(Integer id, String username, String password, String salt, Integer groupid, String groupname, Integer userroleid, String rolemenuid, Integer online, Integer serving) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.groupid = groupid;
        this.groupname = groupname;
        this.userroleid = userroleid;
        this.rolemenuid = rolemenuid;
        this.online = online;
        this.serving = serving;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getGroupid() {
        return groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public Integer getUserroleid() {
        return userroleid;
    }

    public void setUserroleid(Integer userroleid) {
        this.userroleid = userroleid;
    }

    public String getRolemenuid() {
        return rolemenuid;
    }

    public void setRolemenuid(String rolemenuid) {
        this.rolemenuid = rolemenuid;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public Integer getServing() {
        return serving;
    }

    public void setServing(Integer serving) {
        this.serving = serving;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", salt=").append(salt);
        sb.append(", groupid=").append(groupid);
        sb.append(", groupname=").append(groupname);
        sb.append(", userroleid=").append(userroleid);
        sb.append(", rolemenuid=").append(rolemenuid);
        sb.append(", online=").append(online);
        sb.append(", serving=").append(serving);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}